home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed6.d64
/
spelling game
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
8KB
|
266 lines
1 GOTO910
2 PRINT"x[169][141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
3 [153]"xSTEPGINPUTSTOPSTEPINPUTONX` (null)(null)STEP(null)INPUTLISTLX(null)xSTEPUINPUTSTOPSTEP(null)INPUTONX`
4 PRINT"xhhh[170]h[168]hhhhhhh[152]H[138]HX`
5 [153]"hhhhhhh`
6 PRINT"[160][255][200][132][251][169][216][133][252] [241][183][138][162][160][255][200][145][251][136][208][251][230][252][202][208][246]`
7 [153]"NEWCLOSE(null)LEFT$>(null)ON(null)LET(null)(null)(null)(null)(null)(null)MID$(null)(null)`
35 IFUW=0THENSYSUU,15
40 POKEUC,0:POKEUN,0:UR$="":UI$="":IFUL=0THENUL=39
45 GETUI$:IFUI$=""THEN45
50 UA=ASC(UI$):UR=LEN(UR$):IFUA=13ANDUR>0THENPOKEUC,1:PRINT" [157]";:GOTO75
55 IFUA=20THENON-(UR=0)GOTO45:UR$=LEFT$(UR$,UR-1):PRINT"[157] [157][157]";:GOTO45
60 IFUR=ULTHEN45
65 GOSUB95:UR$=UR$+UI$:PRINTUI$;:GOTO45
75 FORUI=URTO1STEP-1:IFMID$(UR$,UI,1)=" "THENNEXT
80 UR$=LEFT$(UR$,UI):PRINT:RETURN
95 IFLEN(US$)=0THEN110
100 FORUI=1TOLEN(US$):IFUI$<>MID$(US$,UI,1)THENNEXT:UI$=""
105 RETURN
110 IFUA=46THENRETURN
115 IFUA=32ANDUR<>0THENRETURN
120 IFUA>47ANDUA<58THENRETURN
125 IFUA>64ANDUA<91THENRETURN
130 IFUA<193ORUA>218THENUI$="":RETURN
135 IFPEEK(UT)=UU%THENUI$=CHR$(UA-128)
140 RETURN
155 UZ=0:US$=UJ$:UG$=UK$:UT$=UL$:UP=UJ:UL=UK:PRINT"[147]";:POKEUY,6:POKEUX,6
160 POKEUT,UV%:POKE251,0:POKE252,UF:POKE253,0:POKE254,US/256:SYSUV:SYSUU,15
165 POKEU1,U1%:POKEU2,U2%:POKEU3,U3%-1:POKEU4,U4%:GOTO35
299 :
300 REM DERIVED FROM COMMODORE ONTARIO EDUCATIONAL SOFTWARE PROJECT 1983
310 REM PROJECT DIRECTOR: FRANK WINTER
320 REM PROJECT NAME: SPELLING TUTOR
330 REM WRITTEN BY: UNKNOWN
340 REM REVISED BY: ALAN FERGUSON
349 :
350 REM UPDATED BY: BILL CUMBERLAND
360 REM TRANSLATED FROM THE RADIOSCHACK BY EVAN HALE
399 :
400 PRINT"[147]":POKEUT,UL%:POKEUY,15:POKEUX,15:POKE646,9
405 PRINT" [201][206][211][212][210][213][195][212][201][207][206][211] [146]
410 [153]" (null)HIS IS A SPELLING GAME FOR TWO "
415 [153]" STUDENTS OR TEAMS."
420 [153]" (null)HE GAME IS PLAYED BY HAVING THE"
425 [153]" CHR$(null)VALVAL(null) TEAM ENTER A LIST OF WORDS.
430 PRINT" [212]HE [210][197][196] TEAM WILL THEN VERBALLY
435 [153]" REPEAT EACH OF THE WORDS AS THEY ARE PRESENTED ON THE SCREEN.
440 PRINT" [206]EXT, EACH OF THE WORDS WILL BE
445 [153]" SCRAMBLED ON THE SCREEN AND MUST BE TYPED CORRECTLY.
450 PRINT " [198]INALLY, ALL THE WORDS THAT WERE
455 [153]" SPELLED INCORRECTLY WILL BE DISPLAYED.
470 GOSUB592:GOSUB830:RETURN
499 :
500 REM <YES> SOUND
505 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
510 POKE54296,15:POKE54277,42:POKE54278,250
515 POKE54276,23:POKE54273,23:POKE54272,191
520 FORTM=1TO100:NEXT:POKE54276,32:FORTM=1TO200:NEXT
525 POKE54296,0:RETURN
530 REM <NO> SOUND
535 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
540 POKE54296,15:POKE54277,18:POKE54278,242
545 POKE54276,33:POKE54273,4:POKE54272,48
550 FORTM=1TO300:NEXT:POKE54276,32:FORTM=1TO400:NEXT
555 POKE54296,0:RETURN
560 REM <BLIP> SOUND
565 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
570 POKE54296,9:POKE54277,42:POKE54278,250
575 POKE54276,23:POKE54273,23:POKE54272,191
580 FORTM=1TO30:NEXT:POKE54276,32:FORTM=1TO50:NEXT
585 POKE54296,0:RETURN
589 :
590 FORTM=1TO500:NEXT:RETURN
591 FORTM=1TO1000:NEXT:RETURN
592 FORTM=1TO2000:NEXT:RETURN
595 FORTM=1TO5000:NEXT:RETURN
599 :
800 PRINT"[147]";:POKEUT,UU%:POKEUY,0:POKEUX,0:POKE646,3
801 PRINT" A TPUG EDUCATIONAL PROGRAM":GOSUB591
802 PRINT" [146]";
803 PRINT" [146]";
804 PRINT" [146]";
805 PRINT" GILLIAN'S SPELLING GAME [146]";
806 PRINT" [146]";
807 PRINT" 2-PLAYER OR 2-TEAM GAME [146]";
808 PRINT" [146]";
809 PRINT"[159] [146]":GOSUB591:GOSUB560
810 PRINT" INSTRUCTIONS? Y/N
811 [161]R$:[139]R$[179][177]"Y"[175]R$[179][177]"N"[167]811
812 [139]R$[178]"Y"[167][141]400
813 [153]"LOAD AND AWAY WE GO.......
814 GOSUB591:GOSUB500:GOSUB591
815 GOTO1000
830 GOSUB591:GOSUB560
835 POKEUN,0:PRINTLEFT$(UD$,24);" [208]RESS [211][208][193][195][197] [194][193][210] TO CONTINUE [146]"
840 GETUI$:IFUI$<>" "THEN840
845 RETURN
850 UP=UP+1:PRINT"[147]"LEFT$(UT$+UP$,21);RIGHT$(UP$+UG$+STR$(UP),18)
855 PRINT" --------------------------------------"
860 IFUH=0THENPRINTLEFT$(UD$,24);LEFT$(UP$,7);"[193]NSWER, THEN PRESS [210][197][212][213][210][206][146]"
865 UH=0:PRINT"":RETURN
875 PRINTLEFT$(UD$,24);" SETTING THE STAGE.... ":RETURN
899 :
900 US=1024:U1=209:U2=210:U3=211:U4=214:UC=204:UB=2048:UX=53280:UD=2064
902 UT=53272:UU%=21:UL%=23:UP%=2151:UN=198:UY=53281:UU=2199:UE=2087
904 UC$=CHR$(155):UV=1214:UF=196:UV=2238
905 UD$="":UP$=" "
909 RETURN
910 GOSUB900:PRINT"[147] "
920 GOTO800
999 :
1000 PRINT"[147]"UC$;:RESTORE:POKEUY,0:POKEUX,0:POKEUT,UL%
1002 US$="ABCDEFGHIJKLMNOPQRSTUVWXYZ[193][194][195][196][197][198][199][200][201][202][203][204][205][206][207][208][209][210][211][212][213][214][215][216][217][218]":IN$=US$
1004 FLAG=1:UG$="":E=0:X=0
1006 GOTO1025
1014 PRINT"[147]"
1015 K=1:PRINT:RETURN
1025 REM
1028 PRINT"[147] [212]HIS IS A SPELLING GAME FOR TWO
1029 [153]" STUDENTS OR TWO TEAMS OF STUDENTS.
1030 PRINT" [212]HE [153][199][210][197][197][206][146][155] PLAYER(S) WILL SELECT THE WORDS.
1031 [153]" (null)HE DEF(null)VALSTR$WAITLIST PLAYER(S) WILL ATTEMPT TO UNSCRAMBLE THE WORDS.
1032 GOSUB830
1037 IFBEATLES=1THEN1050
1040 DIMW$(50):DIMS(1000)
1050 POKEUT,UL%
1060 UP=0:GOSUB865:IFBE=1THEN1111
1061 POKEUY,5:POKEUX,5:POKE646,0
1062 PRINT"[147] [199][210][197][197][206] [212][197][193][205] [146]"
1063 PRINT" [217]OUR TASK IS TO SELECT TWENTY
1064 [153]" NASTY WORDS FOR THIS GAME.":[141]591:[141]830
1074 [153]"LOAD":X[178]20
1075 [151]53280,6:[151]53281,6:[151]646,15
1076 [153]" (null)YPE EACH WORD. LENHECK SPELLING.
1077 PRINT" [201]F CORRECT, PRESS [210][197][212][213][210][206][146].
1081 US$[178]"'ABCDEFGHIJKLMNOPQRSTUVWXYZATNPEEKLENSTR$VALASCCHR$LEFT$RIGHT$MID$(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)":IN$[178]US$
1082 X[178]20
1085 [129]I[178]1[164]X
1090 [153]I;:UL[178]20:US$[178]IN$:[141]35:W$(I)[178]UR$
1095 [139]W$(I)[178]"" [167] [137]1090
1099 [130]I
1100 BE[178]BE[170]1
1102 [153]"LOAD (null)OW CALL THE (null)VALSTR$ WAIT PLAYER(S)
1103 PRINT" AND MAY THE BEST PLAYER(S) WIN!":GOSUB500:GOSUB500:GOSUB592
1104 GOSUB830
1105 BE=BE+1
1110 UG$=""
1111 PRINT"[147]":POKE53280,2:POKE53281,2
1112 PRINT" [210][197][196][160][212][197][193][205] [146]
1113 [153]" (null)IME FOR SPELLING FUN! ! !WAIT"
1124 [153]" LEFT$ERE ARE THE CHR$(null)VALVAL(null) (null)VALATN(null)WAIT WORDS.
1125 PRINT" [208]LEASE SAY EACH WORD AS IT IS PRINTED."
1130 GOSUB830:PRINT"[147]":UH=1:J=0
1140 FORI=1TOX
1145 PRINT" ";W$(I):GOSUB560:GOSUB592:REM FORV=1TO2500:NEXT
1147 J=J+1:IFJ=5THENGOSUB592:PRINT"[147]"
1150 PRINT
1155 NEXTI
1165 PRINT"[147] [199]OOD! [206]OW YOU WILL SEE THE [199][210][197][197][206] [146]
1166 [153]" TEAM WORDS, ONE AT A TIME WITH THE "
1170 [153]" LETTERS SCRAMBLED. (null)EE IF YOU CAN TYPE EACH WORD CORRECTLY."
1171 [141]830
1175 [141]1014
1177 K[178]0
1180 [129]I[178]1[164]X:[153]
1182 K[178]K[170]1:[139] K[178]2[167] [141]1015
1185 M$[178]W$(I)
1190 [129] R[178]1[164][195](M$)
1191 S(R)[178][181]([187](TI)[172][195](M$))[170]1
1192 [129]CO[178]1[164]R[171]1:[139]S(CO)[178]S(R)[175]R[179][177]1[167]1191
1193 [139]UW[179][177]0[167][151]59467,16:P[178][181]([187](1)[172]245)[170]10:[151]59466,P:[151]59464,P
1194 [139]UW[179][177]0[167][151]59466,0:[151]59464,0
1195 [130]CO
1197 [141]560:[153]" ";[202](M$,S(R),1);:[130]R
1198 [153]" ";:UL[178]20:US$[178]IN$:[141]35:S$[178]UR$
1199 [139] S$[178]M$[167] [141]500:[141]1220
1200 [139]S$[179][177]M$[167] [141]530:[141]1240
1205 [139]F[177]0[167]1198
1210 [139]I[178]X[167]1260
1215 [130]I:[137]1260
1220 G[178]O[170]1:[145] G [137]1225,1230,1235
1225 [153]" SQR CHR$OOD! (null)OU GOT THAT ONE!":F[178]0:O[178]O[170]1:[153]:[142]
1230 [153]" SQR (null)ASN'T THAT EASY!":F[178]0:O[178]O[170]1:[153]:[142]
1235 [153]" SQR (null)UPER!!, ";Z$:O[178]0:F[178]0:[153]:[142]
1240 G[178]F[170]1:[145]G [137] 1245,1250,1255
1245 [153]" OOOOPS! (null)OT QUITE "Z$:[153][166]14)"TRY AGAIN.":F[178]F[170]1:[142]
1250 [153]" (null)O, ONE MORE TIME.":F[178]F[170]1:[142]
1255 [153]" (null)ORRY, ";Z$;"."
1257 [153]" (null)HE WORD ISWAIT....'";W$(I);"'":F[178]0:[142]
1260 [141]830:[141]865
1265 [153]:[153]:[153]:[153]" (null)OW RIGHT$'M GOING TO PRINT EACH WORD WITH"
1267 [153]" SOME LETTERS MISSING. (null)OUR JOB IS "
1270 [153]" TO TYPE IN THE CORRECT WORD."
1273 [153]" RIGHT$F YOU DON'T KNOW THE WORD, TYPE 'A'"
1275 [153]" FOR HELP AND RIGHT$'LL GIVE YOU ONE MORE"
1277 [153]" LETTER. (null)YPE 'AA' IF YOU ARE REALLY"
1280 [153]" STUMPED."
1285 K[178]0:[141]830
1290 [129] I[178]1[164]X
1292 K[178]K[170]1:[139] K[178]2[167] [141]1015
1295 M$[178]W$(I)
1300 [139] [195](M$)[177]4[167]1310
1305 [153]" ";[200](M$,2);:[139][195](M$)[179]3[167]1345
1306 [129]Y[178]3[164][195](M$):[153]"*";:[130]Y:[137]1345
1310 [153]" ";[200](M$,2);"**";[202](M$,5,1);:[139][195](M$)[178]5[167]1345
1315 [129]Y[178]6[164][195](M$):[153]"*";:[130]Y:[137]1345
1320 [139] [195](M$)[177]4[167]1330
1325 [153]"ON ";[200](M$,3);:[139][195](M$)[179]4[167]1345
1326 [129]Y[178]4[164][195](M$):[153]"*";:[130]Y:[137]1345
1330 [153]"ON ";[200](M$,3);:[153]"*";:[153][202](M$,5,1);:[139][195](M$)[178]5[167]1345
1335 [129]Y[178]6[164][195](M$):[153]"*";
1340 [130]Y:[137]1345
1345 [143]
1350 [153]" ?CMD";:US$[178]IN$:[141]35:H$[178]UR$
1352 [139] H$[178]"A"[167]1320
1355 [139]H$[178]"AA"[167][141]1255:[137]1370
1360 [139]H$[178]M$[167] [141] 1220:[137]1375
1365 [139]H$[179][177]M$[167][141]1240
1370 [139]F[177]0[167] 1345
1375 [139]I[178]X[167]1380
1380 [130]I
1385 [141]830:[153][163]11)"(null)OW FOR MORE FUN!"
1390 [153]:[153]:[153]" (null)OME OF THE NEXT WORDS MAY BE CORRECT."
1395 [153]" (null)OME OF THEM (MAYBE ALL OF THEM) WILL"
1397 [153]" HAVE THE WRONG LETTERS IN THEM. (null)OUR"
1400 [153]" JOB IS TO TYPE EACH WORD CORRECTLY."
1405 [141]830:K[178]0:[153]:[129]I[178]1[164]X
1407 K[178]K[170]1:[139]K[178]2[167] [141]1015
1410 M$[178]W$(I)
1415 V$[178]"AEIOU"
1420 K$[178]M$
1425 [129]D[178]1[164][195](M$)
1430 D$[178][202](M$,D,1)
1435 [139]D$[178]"A"[176]D$[178]"E"[176]D$[178]"I"[176]D$[178]"O"[176]D$[178]"U"[167]1445
1440 [137]1460
1445 V[178][187](1)[172]4:V[178][181](V[170]1.5)
1450 Q$[178][202](V$,V,1)
1455 K$[178][200](K$,D[171]1)[170]Q$[170][201](K$,[195](K$)[171]D)
1460 [130]D
1465 [153]" ";K$;
1470 [153]" ";:UL[178]20:[141]35:L$[178]UR$:[139] L$[178]M$[137]1490
1475 [139]L$[179][177]M$[167][141]1540
1480 [139]I[178]X[167]1500
1485 [130]I:[137]1505
1490 E[178]E[170]1:[141]1220
1495 [137]1480
1500 [139]E[173]X[179].8[167][153]" (null)CLOSE(null)CLOSE(null)CLOSECLOSELENCLOSEATNCLOSE(null)CLOSECLOSESTR$CLOSE(null)CLOSECLOSEPEEKCLOSEVALCLOSE(null)CLOSE(null)CLOSEVALCLOSE(null).":[137]1510
1502 [153][163]5)"LEFT$CLOSE(null)CLOSE(null)CLOSE(null)CLOSEATNCLOSE(null)!!"
1504 [141]830:[153][163]5)"(null)OU GOT ";E;" RIGHT"
1506 [153][163]5)"OUT OF THE LAST ";X;" WORDS"
1508 [153]" (null)OULD YOU LIKE TO TRY AGAIN? ";:US$[178]"YN":UL[178]1:[141]35:A$[178]UR$
1510 [139]A$[178]"Y"[167]E[178]0:[153]:[137]1125
1514 [153]"LOAD (null)ETURNING TO THE DISK (null)VAL(null)(null)
1516 LOAD"MENU",8
1518 RUN
1520 END
1522 :
1535 IFUW=0THENGOSUB5000
1536 FORT=1TO3:PRINTCHR$(7):NEXT
1539 RETURN
1540 PRINT" [201]'M SORRY BUT THAT WAS INCORRECT. [212]HE WORD IS.... ";M$
1545 RETURN
1610 J=J+1
5000 FORA8=1TO700:NEXT:RETURN
6000 REM WHC 90:11:30